<?php /* Smarty version 2.6.26, created on 2013-10-28 19:26:13
         compiled from ../templates/front/js/skip.js */ ?>
<script type="text/javascript">

var seconds = 3;
var defaultUrl = "<?php echo $this->_tpl_vars['url']; ?>
";

<?php echo '
window.onload = function(){
  window.setInterval(redirection, 1000);
}
function redirection(){
	if (seconds <= 0){
		window.clearInterval();
		return;
	}
	seconds --;
	document.getElementById(\'spanSeconds\').innerHTML = seconds;
	if (seconds == 0){
		window.clearInterval();
		location.href = defaultUrl;
	}
}

</script>
'; ?>